package com.citrix.gs.util.base;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

import com.perforce.p4java.server.IOptionsServer;

public class PerforceUtilTest {

    @BeforeClass
    public static void setUpBeforeClass() throws Exception {
    }

    @AfterClass
    public static void tearDownAfterClass() throws Exception {
    }

    @Before
    public void setUp() throws Exception {
    }

    @After
    public void tearDown() throws Exception {
    }

    @Test
    public void testInitConfigServer() {
        PerforceUtil pUtil = new PerforceUtil() {
            
        };
        
        pUtil.initConfigServer();
        System.out.println("Ticket: " + pUtil.getPerforceServer().getAuthTicket());
        
        pUtil.initConfigServer("p4java://NKGP401.eng.citrite.net:1111","yuzho", "Szqy$1135");
        System.out.println("Ticket: "+  pUtil.getPerforceServer().getAuthTicket());
        System.out.print("Server inited");
    }

}
